package cn.iocoder.yudao.module.dine.desk.pojo.po;

import cn.iocoder.yudao.framework.business.basic.pojo.po.MerchantScopeEntity;
import cn.iocoder.yudao.framework.validation.InEnumValue;
import cn.iocoder.yudao.module.api.shop.desk.enums.DeskOrderStatusEnum;
import cn.iocoder.yudao.module.api.shop.desk.enums.DeskStatusEnum;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 数据库表实体
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/04/11
 */
@Data
@TableName("dine_desk")
@Schema(description = "餐桌")
public class Desk extends MerchantScopeEntity {

    @Schema(description = "分类编号")
    private Long categoryId;

    @Schema(description = "餐桌号，如D01")
    private String no;

    @Schema(description = "图片")
    private String picUrl;

    @Schema(description = "状态：0-空闲中、1-占用中")
    @InEnumValue(DeskStatusEnum.class)
    private Integer status;

    @Schema(description = "上次下单单号")
    private String lastOrderNo;

    @Schema(description = "上次下单状态：-1-无、0-就餐中、1-已出单、2-已完成")
    @InEnumValue(DeskOrderStatusEnum.class)
    private Integer lastOrderStatus;

    @Schema(description = "上次下单时间")
    private LocalDateTime lastOrderTime;

    @Schema(description = "累计下单数量")
    private Integer totalOrderCount;

    @Schema(description = "累计消费金额")
    private Integer totalPayPrice;
}
